<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:doc="livcos.org/ns/doc"
  xmlns="http://www.w3.org/1999/XSL/Format"
  exclude-result-prefixes="doc">

  <xsl:template match="doc:strong | strong | b">
    <inline font-weight="bold">
      <xsl:apply-templates/>
    </inline>
  </xsl:template>

  <xsl:template match="doc:em | em | i">
    <inline font-weight="bold">
      <xsl:apply-templates/>
    </inline>
  </xsl:template>

  <xsl:template match="doc:u | u">
    <inline text-decoration="underline">
      <xsl:apply-templates/>
    </inline>
  </xsl:template>

  <xsl:template match="doc:sup | sup">
    <inline vertical-align="super">
      <xsl:apply-templates/>
    </inline>
  </xsl:template>

  <xsl:template match="doc:sub | sub">
    <inline vertical-align="sub">
      <xsl:apply-templates/>
    </inline>
  </xsl:template>

  <xsl:template match="doc:s | s | strike">
    <inline text-decoration="line-through">
      <xsl:apply-templates/>
    </inline>
  </xsl:template>

  <xsl:template match="doc:br">
    <block/>
  </xsl:template>

  <xsl:template match="doc:code">
    <inline font-family="monospace" font-size="9pt">
      <xsl:apply-templates/>
    </inline>
  </xsl:template>

</xsl:stylesheet>
